<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    

    <script src="./node_modules/axios/dist/axios.js"></script>
    <script>
        // 用URLSearchParams把要传进去的数据格式化为form表单的数据  在from Data里
        const params=new URLSearchParams();
        params.append("name",111);// 传入一个键值对数据
        axios.post("http://s.linweiqin.com/api/s/getIndexLoopimg",params).then((res)=>{
            console.log(res);
        })
        .catch((err)=>{
            console.log(err);
        })











        
    </script>
</body>
</html>